<div class="admin">
<div class="tab panel dux-box admin-panel">
    <div class="panel-head"><strong>活动专题管理</strong></div>
    <div class="padding border-bottom">
        <a href="JavaScript:void(0);" class="button button-small bg-green">管理</a>
        <a href="{:U('add')}" class="button button-small border-green">添加</a>
    </div>
            <div class="fixed-empty"></div>
            <form method="post" action="" name="myForm" id="myForm">
                <table class="table tb-type2 nobdb">
                    <thead>
                        <tr class="thead">
                            <th class="align-center">编号</th>
                            <th class="align-center">活动名称</th>
                            <th class="align-center">开始时间</th>
                            <th class="align-center">结束时间</th>
                            <th class="align-center">创建日期</th>
                            <th class="align-center">模版名称</th>
                            <th class="align-center">操作</th>
                        </tr>
                    </thead>
                    <tbody>
                    <foreach item="v" name="list">
                        <tr class="hover">
                            <td class="align-center">{$v['topic_id']}</td>
                            <td>{$v['title']}</td>
                            <td class="align-center">{$v['start_time']|date='Y-m-d H:i:s',###}</td>
                            <td class="align-center">{$v['end_time']|date='Y-m-d H:i:s',###}</td>
                            <td class="align-center">{$v['created']|date='Y-m-d H:i:s',###}</td>
                            <td class="nowrap align-center">{$v['template']}</td>
                            <td class="align-center">
                                <a class="button bg-blue button-little" href="{:U('addgoods',array('topic_id'=>$v['topic_id']))}"><i class="icon-floppy-o"></i>添加产品</a>
                                <a class="button bg-blue button-little" href="{:U('edit',array('topic_id'=>$v['topic_id']))}"><i class="icon-edit"></i>修改</a>
                                <a class="button bg-red button-little js-del" href="javascript:;" data="{$v['topic_id']}" title="删除"><i class="icon-minus-circle"></i>删除</a>
                                <a class="button bg-green button-little" href="{:HOME_URL}/Topic/{$v['topic_id']}" target="_blank"  title="预览"><i class="icon-eye"></i>预览</a>
                                <!-- 删除 -->
                            </td>
                        </tr>
                    </foreach>
                    </tbody>
                    <tfoot>
                        <tr class="tfoot">
                            <td colspan="15"><div class="pages clearfix">{$pages}</div></td>
                        </tr>
                    </tfoot>
                </table>
            </form>
        </div>
		</div>
        <script type="text/javascript">
            $('#myForm').layer({
                actionUrl: "batchAction",
                deleteUrl: "{:U('/Topic/del')}",
            });
            $('#query_start_time').duxTime({
                timepicker: false,
                minDate: 0,
                format: "Y-m-d"
            });
            $('#query_end_time').duxTime({
                timepicker: false,
                minDate: 0,
                format: "Y-m-d"
            });
        </script>